import {AdminStruct} from "@/api/structs";
import {BasePaginationResponse} from "@/api/baseResponse"
import {BaseParams} from "@/api/BaseParams";

export const ADMIN_API = '/admin/list';
export const ADMIN_CREATE_API = '/admin/create';
export const ADMIN_UPDATE_API = '/admin/update';
export const ADMIN_DELETE_API = '/admin/delete';

export class AdminParams extends BaseParams {
    id: string = "";
    nickname: string = "";
}

export class AdminResponse extends BasePaginationResponse {
    data: Array<AdminStruct> = new Array<AdminStruct>();
}

export class AdminData {
    data: Array<AdminStruct> = new Array<AdminStruct>();
}

export class AdminSaveParams {

}

export class AdminForm {
    id: number = 0;
    account: string = "";
    password: string = "";
    nickname: string = "";
}